package org.lw;

import org.lw.config.SpringConfig;
import org.lw.controller.HelloController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.naming.ldap.HasControls;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {

        ApplicationContext context=  new AnnotationConfigApplicationContext(SpringConfig.class);
        HelloController bean = context.getBean("helloController2", HelloController.class);
        bean.hello();
    }
}